Ext.define("{{namespace}}.view.{{name}}.{{name}}FormView", {
  extend: "Ext.panel.Panel",
  id:"form-{{name}}Form",
  title: "{{title}}",
  titleAlign:"center",
  layout: {
    type: "table",
    columns: 6,
    tableAttrs: {
      style: {
          width: '100%'
      }
    }
  },
  viewModel:{
    type:"{{namespace}}-{{name}}"
  },
  items:[
    {% for field in fields %}
        {% if !loop.first %},{% endif %}{
          {% if field.isFromSystem %}
            xtype:"label",
            fieldLabel:"{{ field.label }}",
            flex:1,
            bind: "{{field.bind}}"
          {% else %}
            xtype:"{{field.xtype}}",
            flex:1,
            fieldLabel:"{{ field.label }}",
            itemId:"{{field.id}}",
            {% if field.xtype == "combobox" %}
            store:["1","2","3"],
            {% endif %}
            bind: "{{field.bind}}"

          {% endif %}
        }
    {% endfor %}
  ]
});